import request from "../../request";
export default {
  pageList(data) {
    //获取组织结构
    return request({
      url: "TsysOrganization/page",
      method: "post",
      data
    });
  },
  totalList() {
    //组织结构-下拉框
    return request({
      url: "TsysOrganization/findOrganizationList",
      method: "post",
      data: {}
    });
  },
  addOrganization(data) {
    //添加组织结构
    return request({
      url: "TsysOrganization/save",
      method: "post",
      data
    });
  },
  updateOrganization(data) {
    //修改组织结构
    return request({
      url: "TsysOrganization/update",
      method: "post",
      data
    });
  },
  removeOrganization(data) {
    //删除组织结构
    return request({
      url: "/TsysOrganization/deleteOrganization",
      method: "post",
      data
    });
  }
};
